package cn.eveo.demo;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.ArrayList;
import java.util.List;

import cn.eveo.trypagerindicator.TryPagerIndicator;

public class MainActivity extends AppCompatActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        FragmentManager fragmentManager = getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        TitleFragment titleFragment = new TitleFragment();
        fragmentTransaction.add(R.id.framelayout, titleFragment);

//        IconFragment iconFragment = new IconFragment();
//        fragmentTransaction.add(R.id.framelayout, iconFragment);
        fragmentTransaction.commit();

    }

}
